package com.xiaofeixia.sj.dao;

import com.xiaofeixia.sj.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserDAO {
    /**
     * 查询用户信息
     * @return
     */
    @Select("select * from user_table")
    List<User> SelectUser();


    /**
     * 登陆
     * @param username
     * @param password
     * @return
     */
    @Select("select * from user_table where user_name=#{username} and password = #{password}")
    User SelectLogin(@Param("username") String username, @Param("password") String password);
}
